<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>链接伪类</title>
    <a href="../选择器首页.html">首页</a>
    
</head>
<body>
    <a href="https://naidu.com">这是一个去到百度的链接</a>
</div>
    <style>
        a{
            text-decoration: none;
        }
        a:link{
            color: rgb(243, 20, 20);
        }
        a:visited{
            color: grey;
        }
        a:focus{
            color: rgb(243, 20, 20);
        }
        a:hover{
            color: rgb(243, 20, 20);
            background-color: rgb(9, 245, 170);
        }
        a:active{
            color: rgb(9, 245, 170);
            background-color: rgb(243, 20, 20);
        }
    </style>
</body>
</html>